package request

type TmallMallitemcenterServiceproductQueryRequest struct {
	/*
	   服务产品id     */
	Id *int64 `json:"id,omitempty" required:"false" `
	/*
	   产品状态     */
	Status *int64 `json:"status,omitempty" required:"false" `
	/*
	   服务名称     */
	ServiceCode *string `json:"service_code,omitempty" required:"false" `
	/*
	   产品类型     */
	ServiceProductType *int64 `json:"service_product_type,omitempty" required:"false" `
}

func (s *TmallMallitemcenterServiceproductQueryRequest) SetId(v int64) *TmallMallitemcenterServiceproductQueryRequest {
	s.Id = &v
	return s
}
func (s *TmallMallitemcenterServiceproductQueryRequest) SetStatus(v int64) *TmallMallitemcenterServiceproductQueryRequest {
	s.Status = &v
	return s
}
func (s *TmallMallitemcenterServiceproductQueryRequest) SetServiceCode(v string) *TmallMallitemcenterServiceproductQueryRequest {
	s.ServiceCode = &v
	return s
}
func (s *TmallMallitemcenterServiceproductQueryRequest) SetServiceProductType(v int64) *TmallMallitemcenterServiceproductQueryRequest {
	s.ServiceProductType = &v
	return s
}

func (req *TmallMallitemcenterServiceproductQueryRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.Id != nil {
		paramMap["id"] = *req.Id
	}
	if req.Status != nil {
		paramMap["status"] = *req.Status
	}
	if req.ServiceCode != nil {
		paramMap["service_code"] = *req.ServiceCode
	}
	if req.ServiceProductType != nil {
		paramMap["service_product_type"] = *req.ServiceProductType
	}
	return paramMap
}

func (req *TmallMallitemcenterServiceproductQueryRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
